//    Copyright (C) Kherty.  All rights reserved.
using OpenLS.Core.Serialization;

namespace OpenLS.Drawing.Diagram
{
    class Adj: IOfficeXmlSerializable
    {
        private double _val;
        private int _idx;

        public void ReadXml(ReadContext context)
        {
            using (var c = context.Read("adj"))
            {
                _idx = c.GetInteger("idx");
                _val = c.GetDouble("val");
            }

        }

        public void WriteXml(WriteContext context)
        {
            using (var c = context.Write("adj"))
            {
                c.SetInteger("idx", _idx);
                c.SetDouble("val", _val);
            }
        }
    }
}